import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    component: () => import('@/views/Overview.vue'),
  },
  {
    path: '/management',
    component: () => import('@/views/Management.vue'),
  },
  {
    path: '/prod/task',
    component: () => import('@/views/ProdTask.vue'),
  },
  {
    path: '/prod/schedule',
    component: () => import('@/views/ProdSchedule.vue'),
  },
  {
    path: '/detail/:serverId',
    component: () => import('@/views/Detail.vue'),
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
